package com.yjt.javatest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjt.javatest.entity.Category;
import com.yjt.javatest.utils.APIResponse;

/**
 * (Category)表服务接口
 *
 * @author makejava
 * @since 2023-09-14 13:38:12
 */
public interface CategoryService extends IService<Category> {

    APIResponse createCategory(Category category);


    APIResponse listCategoriesByFatherId(Integer fatherId) throws Exception;

    APIResponse deleteCategoryById(Integer id);

    APIResponse listAll();
}

